﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title></title>
    <script src="@Url.Content("~/Content/jquery/jquery-1.9.1.js")"></script>

    <script type="text/javascript" language="javascript">


        $(function () {
            GetCliqueInfo();
        });

        //登录
        function CheckLogin() {
            $.post('@Url.Content("http://58.215.8.162:8081/Api/Screen/CheckLogin")', { name: "admin", pwd: "888888" }, function (data) {
                alert(data.uid);
            }, 'json');
        }

        //集团总览
        function GetCliqueInfo() {
            $.post('@Url.Content("http://58.215.8.162:8081/Api/Screen/GetCliqueInfo")', { id: "Freenep", userId: "admin" }, function (data) {
   
            }, 'json');
        }

        //电站数据 集合
        function GetStationList() {
            $.post('@Url.Content("~/Api/Screen/GetStationList")', { userId: "admin", privinceId: 5 }, function (data) {

            }, 'json');
        }

        //电站数据 单个
        function GetStationInfo() {
            $.post('@Url.Content("~/Api/Screen/GetStationInfo")', { stationId: "BY" }, function (data) {

            }, 'json');
        }

        //逆变器信息 集合
        function GetInverterList() {
            $.post('@Url.Content("~/Api/Screen/GetInverterList")', { stationId: "WLT" }, function (data) {

            }, 'json');
        }
        //逆变器详细
        function GetInverterInfo() {
            $.post('@Url.Content("~/Api/Screen/GetInverterInfo")', { inverterId: "WLT:1:001AA00" }, function (data) {

            }, 'json');
        }

        //年报表
        function GetReportYear() {
            $.post('@Url.Content("~/Api/Screen/GetReportYear")', { userId: "admin", st: "2017-3-1 0:00:00", et: "2017-3-9 0:00:00" }, function (data) {

            }, 'json');
        }

        //月报表
        function GetReportMonth() {
            $.post('@Url.Content("~/Api/Screen/GetReportMonth")', { userId: "admin", st: "2017-2-1 0:00:00", et: "2017-2-28 0:00:00" }, function (data) {
                alert(data.data[0]["stationName"]);
            }, 'json');
        }

        //日报表
        function GetReportDay() {
            $.post('@Url.Content("~/Api/Screen/GetReportDay")', { userId: "admin", st: "2016-3-1 0:00:00", et: "2016-3-4 23:59:59" }, function (data) {

            }, 'json');
        }
        //http://58.215.8.162:8081/Api/Screen
    </script>
</head>

<body>

</body>

</html>
